#pragma once

#include "logger_api.hpp"

// 基础文本格式化器实现
class BasicFormatter : public IFormatter {
public:
    BasicFormatter() : m_formatterName("BasicFormatter") {}
    // 修改成直接接收LogEntry
    std::string format(const LogEntry& entry) const override ;

    std::string getName() override { return m_formatterName; }

private:
    std::string m_formatterName;
    // 将LogLevel转换为字符串
    std::string levelToString(LogLevel level) const;
};
